#if CONFIG_CPP_STUB_ENABLE
#include <gtest/gtest.h>
#include <cpp-stub/stub.h>
#include "foo.h"

int foo_stub()
{
    printf("foo_stub\n");
    return 1;
}

TEST(testcase, stub01){
    Stub stub;
    stub.set(foo, foo_stub);
    int ret = foo();
    EXPECT_EQ(ret, 1);
}
#endif
